package com.tuanzi.loan.business.repository.system;

import java.util.List;

import com.tuanzi.loan.business.entity.system.SystemUser;
import com.tuanzi.loan.business.repository.system.custom.SystemUserRepositoryCustom;
import com.tuanzi.loan.core.repository.JPABaseRepository;

/**
 * @author Ray 2017/09/21
 */
public interface SystemUserRepository extends SystemUserRepositoryCustom, JPABaseRepository<SystemUser, String> {

	SystemUser findByAccount(String account);

	List<SystemUser> findAllByPartnerId(String partnerId);

	List<SystemUser> findAllByAccountIn(List<String> accounts);

	Long countByAccount(String account);

	List<SystemUser> findAllByEmailIsNotNull();
}
